<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>碧城</title>
<META HTTP-EQUIV="pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
<META HTTP-EQUIV="expires" CONTENT="0">
<link href="css/style.css" rel="stylesheet" type="text/css">
<link href="css/tuangou.css" rel="stylesheet" type="text/css">
<link href="css/head.css" rel="stylesheet" type="text/css">
<link href="css/foot.css" rel="stylesheet" type="text/css">
<link href="css/prodel.css" rel="stylesheet" type="text/css">
<link href="css/index.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="js/request.js"></script>
<script type="text/javascript">
var http_request=null;
function addCollection(itemId){
	http_request=getRequest();
	if (http_request == null) {
		alert("Your browser does not support AJAX!");
		return;
	}
	http_request.onreadystatechange = showMessage;
	http_request.open("GET", "addCollection.do?itemId="+itemId, true);
	http_request.send(null);
}

function showMessage(){
	if (http_request.readyState == 4) {
		alert(http_request.responseText);
	}
}


function changeTable(id1,id2){
	var t1=document.getElementById(id1);
	var t2=document.getElementById(id2);
	t1.style.display='block';
	t2.style.display='none';
}
</script>
</head>
<body>
<#------------------ include header -------------------------------->
<#include "/WEB-INF/view/header.ftl" />
<#------------------ include header -------------------------------->
<!--客服开始
<div class="head_outer3">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
			  <tr>
				<td class="share_flash_topleft"></td>
				<td class="share_flash_topmidst"></td>
				<td class="share_flash_topright"></td>
			  </tr>
			  <tr>
				<td class="share_flash_midstleft"></td>

				<td class="share_flash_midstmidst">
	<div class="head_service01">
					<div class="head_service01_01">客服中心:</div>
					<div class="head_service01_02"><img src="img/index_call.gif" width="193" height="29"></div>
					<div class="head_service01_01">&nbsp;(周一至周日<span class="share_red">9:00 - 20:00</span>)</div>
	</div>
	<div class="head_service02"></div>
</td>
				<td class="share_flash_midstright"></td>
			  </tr>
			  <tr>
				<td class="share_flash_bottomleft"></td>
				<td class="share_flash_bottommidst"></td>
				<td class="share_flash_bottomright"></td>
			  </tr>
			</table>
</div>


客服结束-->
<div class="head_outer4"> 您现在的位置是: <a href="index.htm">首页</a> <#list ancestries?if_exists as cateogry>  》<#if (cateogry.item_clsno?length>2) > <a href='listItem.htm?categoryId=${cateogry.item_clsno}'>${cateogry.item_clsname}</a><#else> ${cateogry.item_clsname}</#if>  </#list>   》 <a href='listItem.htm?categoryId=${category.item_clsno}'>${category.item_clsname}</a> 》<a href="item_${item.item_no?if_exists}.htm">${item.titles?if_exists}</a> </div>
<div class="share_body">
  <div class="share_left">
    <table class="shareleft01" width="100%" border="0" cellpadding="0" cellspacing="0">
      <tbody>
      
      <tr>
        <td class="index_cat01">同类热销产品&nbsp;</td>
      </tr>
      <tr>
        <td class="index_cat02"><table style="margin: 3px; background-color: rgb(255, 255, 255);" width="96%" border="0" cellpadding="0" cellspacing="0">
            <tbody>
              <tr>
                <td colspan="2" height="5"></td>
              </tr>
            <#list rankItems?if_exists as item>
            <tr>
              <td valign="middle" width="20" align="center"><img src="img/sq_01.gif"></td>
              <td width="153" align="left"><a href="item_${item.item_no}.htm" target="_blank" title="${item.titles}">${item.titles}</a> </td>
            </tr>
            </#list>
            </tbody>
            
          </table></td>
      </tr>
      <tr>
        <td background="img/index_02.gif" height="7"></td>
      </tr>
      </tbody>
      
    </table>
    <table class="shareleft02" width="100%" border="0" cellpadding="0" cellspacing="0">
      <tbody>
      
      <tr>
        <td class="index_cat01">${ancestries[0]?if_exists.item_clsname}类排行</td>
      </tr>
      <tr>
        <td class="index_cat02"><table style="margin: 3px; background-color: rgb(255, 255, 255);" width="96%" border="0" cellpadding="0" cellspacing="0">
            <tbody>
              <tr>
                <td colspan="2" height="5"></td>
              </tr>
            <#list topCategoryRankItems?if_exists as item>
            <tr>
              <td valign="middle" width="20" align="center"><img src="img/sq_01.gif"></td>
              <td width="153" align="left"><a href="item_${item.item_no}.htm" target="_blank" title="${item.titles}">${item.titles}</a> </td>
            </tr>
            </#list>
            </tbody>
            
          </table></td>
      </tr>
      <tr>
        <td background="img/index_02.gif" height="7"></td>
      </tr>
      </tbody>
      
    </table>
    <table class="shareleft02" width="100%" border="0" cellpadding="0" cellspacing="0">
      <tbody>
        <tr>
          <td class="index_cat01">本月推荐</td>
        </tr>
        <tr>
          <td class="index_cat02"><table width="110" border="0" cellpadding="0" cellspacing="0">
              <tbody>
                <tr>
                  <td class="td7" align="center" height="110"></td>
                </tr>
              </tbody>
            </table></td>
        </tr>
        <tr>
          <td background="img/index_02.gif" height="7"></td>
        </tr>
      </tbody>
    </table>
    <table class="shareleft02" width="100%" border="0" cellpadding="0" cellspacing="0">
      <tbody>
        <tr>
          <td class="index_cat01">近期浏览</td>
        </tr>
        <tr>
          <td class="index_cat02"><table class="table3" width="95%" border="0" cellpadding="0" cellspacing="0">
              <tbody>
                <tr>
                  <td valign="top" align="cente" height="90"><#list history as item>
                    <table valign="middle" width="100%">
                      <tbody>
                        <tr>
                          <td class="td7"><a href="item_${item.item_no}.htm">${item.titles}</a></td>
                        </tr>
                      </tbody>
                    </table>
                    </#list> </td>
                </tr>
              </tbody>
            </table></td>
        </tr>
        <tr>
          <td background="img/index_02.gif" height="7"></td>
        </tr>
      </tbody>
    </table>
  </div>
  <div class="share_right">
    <!--第一部分开始-->
    <table class="share_righttop" border="0" cellpadding="0" cellspacing="0">
      <tbody>
      
      <tr>
        <td valign="top"><div class="pro_delpic"><span id="delpic"><a href="http://image.b2office.com.cn/goods/big/${item.item_no}.jpg" target="_blank"><img src="http://image.b2office.com.cn/goods/big/${item.item_no}.jpg" width="200" border="0" height="200"></a></span></div>
          <table class="pro_delnextpic" border="0" cellpadding="0" cellspacing="0">
            <tbody>
              <tr>
                <td><a href="http://image.b2office.com.cn/goods/bigger/${item.item_no}.jpg" target="_blank"><img src="img/product_01.gif" width="17" border="0" height="15">放大图片</a></td>
                <td>已有<a href="javascript:changeTable('question','comment')" class="product_link">用户提问</a>${cmmSize}条</td>
              </tr>
            </tbody>
          </table>
          <table class="pro_delotherpic" width="100%" border="0" cellpadding="0" cellspacing="0">
            <tbody>
              <tr>
                <td><table class="pro_delsmallpic" border="0" cellpadding="0" cellspacing="0">
                    <tbody>
                      <tr>
                        <td class="td7" align="center"><img src="http://image.b2office.com.cn/goods/small/${item.item_no}.jpg" onMouseOver="changePic(this,'251223')" width="60" border="0" height="60"></td>
                      </tr>
                    </tbody>
                  </table></td>
              </tr>
            </tbody>
          </table></td>
        <td valign="top"><!--右侧商品相关信息,购买按钮,同类商品开始-->
          <div class="pro_delright"> <#---------------------   from start   --------------->
            <form namespace="" name="addItemToCartForm" id="addItemToCartForm" action="addCart.do" method="post">
              <input type="hidden" name="itemId" value="${item.item_no?if_exists}" />
              <table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tbody>
                  <tr>
                    <td colspan="2" class="pro_deltitle">${item.titles?if_exists}</td>
                  </tr>
                  <tr>
                    <td class="pro_deltableleft">品牌：${brand?if_exists.brand_name}</td>
                    <td class="pro_deltableright">产品编号：${item.item_no?if_exists}</td>
                  </tr>
                  <tr>
                    <td class="pro_deltableleft">碧城价：${item.b2hprice?if_exists}元/${item.unit_no?if_exists} </td>
                    <td class="pro_deltableright">配送周期：${item.deliverday?if_exists}小时</td>
                  </tr>
                  <tr>
                    <td class="pro_deltableleft">购买数量：
                      <input id="qty" name="qty" class="plist_input2" value="1" type="text" <#if item.inventstate==1>disabled</#if>>
                      <#if item.usenewunit = 1>
                      ${item.newunit?if_exists} 
                      <#else>
                      ${item.unit_no?if_exists}
                      </#if> </td>
                    <td class="pro_deltableright">&nbsp;</td>
                  </tr>
                <#if item.useshape = 1>
                <tr>
                  <td colspan="2" class="pro_deltabledown">选择规格：
                    <input name="shape" value="3" type="radio">
                    大个 约${item.bigqty?if_exists}KG  &nbsp;&nbsp;&nbsp;
                    <input name="shape" value="2" checked="checked" type="radio">
                    中个 约${item.midqty?if_exists}KG  &nbsp;&nbsp;&nbsp;
                    <input name="shape" value="1" type="radio">
                    小个 约${item.smlqty?if_exists}KG </td>
                </tr>
                </#if>
                </tbody>
                
              </table>
              <table class="pro_delbutton" width="100%" border="0" cellpadding="0" cellspacing="0">
                <tbody>
                  <tr>
                    <td width="21%" align="center"><#if item.inventstate==0>
	              <a href="javascript:addToCart(${item.item_no},<#if (item.usenewunit==1)&&(item.useshape==1)>true<#else>false</#if>)"><img src="img/plist_06.gif" width="67" border="0" height="21"></a>
	              <#else>
	              <img src="img/plist_06_2.gif" width="67" border="0" height="21">
	              </#if></td>
                    <td width="35%" align="left"><a href="#" onClick="addCollection('${item.item_no}')"><img src="img/plist_07.gif" width="67" border="0" height="21"></a></td>
                    <td width="23%"><a href="#"><img src="img/product_06.gif" border="0"></a></td>
                  </tr>
                </tbody>
              </table>
            </form>
            <#---------------------   from end   --------------->
            <div class="pro_delsamecat">
              <div onClick="pre('160601')" class="pro_delsamecatleft"><img src="img/prodel01.jpeg"></div>
              <span id="brotherinit">
              <div class="pro_delsamecatmidst">
                <input id="bropageno" name="bropageno" value="1" type="hidden">
                <div>
                  <table class="pro_delotherpic2" border="0" cellpadding="0" cellspacing="0">
                    <tbody>
                      <tr> <#list 1..5 as i>
                        <td align="center"><table class="pro_delsmallpic" border="0" cellpadding="0" cellspacing="0">
                            <tbody>
                              <tr>
                                <td class="td7" align="center"><a href="#" title=""><img src="http://image.b2office.com.cn/goods/small/251221.jpeg" width="60" border="0" height="60"></a></td>
                              </tr>
                            </tbody>
                          </table></td>
                        </#list> </tr>
                    </tbody>
                  </table>
                </div>
              </div>
              </span>
              <div onClick="next('160601',14)" class="pro_delsamecatright"><img src="img/prodel03.jpeg"></div>
            </div>
          </div>
          <!--右侧商品相关信息,购买按钮,同类商品结束-->
        </td>
      </tr>
      </tbody>
      
    </table>
    <!--第一部分结束-->
    <!--详细信息及评价开始-->
    <div class="prodel_righttop">
      <table id="comment" class="share_righttop2" border="0" cellpadding="0" cellspacing="0">
        <tbody>
          <tr>
            <td><table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tbody>
                  <tr>
                    <td width="25" height="29">&nbsp;</td>
                    <td class="product_title2" onClick="changeTable('comment','question')" width="105" align="center">详细描述</td>
                    <td width="5">&nbsp;</td>
                    <td class="product_title1" onClick="changeTable('question','comment')" width="105" align="center">用户提问</td>
                    <td>&nbsp;</td>
                  </tr>
                </tbody>
              </table>
              <table class="product_table1" width="100%" border="0" cellpadding="0" cellspacing="0">
                <tbody>
                  <tr>
                    <td class="sq_td1">
                    <#if item.comments?exists>
                    ${item.comments}
                    <#else>
                    暂无商品介绍
                    </#if>
                    </td>
                  </tr>
                </tbody>
              </table></td>
          </tr>
        </tbody>
      </table>
      <table id="question" style="display: none;" class="share_righttop2" border="0" cellpadding="0" cellspacing="0">
        <tbody>
          <tr>
            <td><table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tbody>
                  <tr>
                    <td width="25" height="29">&nbsp;</td>
                    <td class="product_title1" onClick="changeTable('comment','question')" width="105" align="center">详细描述</td>
                    <td width="5">&nbsp;</td>
                    <td class="product_title2" onClick="changeTable('question','comment')" width="105" align="center">用户提问</td>
                    <td>&nbsp;</td>
                  </tr>
                </tbody>
              </table>
              <table class="product_table1" width="100%" border="0" cellpadding="0" cellspacing="0">
                <tbody>
                  <tr>
                    <td>
                    <#if Session?exists&&Session.user?exists>
                    <form name="comm" action="addItemComment.do" method="post">
                        <input name="itemId" value="${item.item_no}" type="hidden">
                        <table style="margin: 10px auto 15px; width: 500px;" border="0" cellpadding="3" cellspacing="1">
                          <tbody>
                            <tr>
                              <td width="18%" align="right" bgcolor="#dfdede">标题：</td>
                              <td width="82%" bgcolor="#eae9e9"><input id="title" name="title" type="text"></td>
                            </tr>
                            <tr>
                              <td align="right" bgcolor="#dfdede">内容：</td>
                              <td bgcolor="#eae9e9"><textarea name="comments" id="comments" rows="5" cols="40"></textarea></td>
                            </tr>
                            <tr>
                              <td bgcolor="#dfdede">&nbsp;</td>
                              <td bgcolor="#eae9e9"><table width="39%" border="0" cellpadding="0" cellspacing="0">
                                  <tbody>
                                    <tr>
                                      <td><input name="Submit" value="提交" type="submit"></td>
                                      <td><input name="reset" value="重填" type="reset"></td>
                                    </tr>
                                  </tbody>
                                </table></td>
                            </tr>
                          </tbody>
                        </table>
                      </form>
                      <#else>
                      <br>
                      您尚未登录.请<a href='login.htm'><u>登录</u></a>后发表提问。
                      <p>
                      </#if>
                      </td>
                  </tr>
                </tbody>
              </table></td>
          </tr>
        </tbody>
      </table>
    </div>
    <!--详细信息及评价结束-->
    <!--也要发表评价开始-->
    <table class="prodel_righttop" width="100%" border="0" cellpadding="0" cellspacing="0">
      <tbody>
        <tr>
          <td width="67%">&nbsp;</td>
          <td class="product_td3" width="15%"><a href="javascript:changeTable('question','comment')" class="product_link">有问题要问</a></td>
          <td class="product_td3" width="18%"><a href="listItemComment.do?itemId=${item.item_no}" class="product_link">浏览全部用户提问</a></td>
        </tr>
      </tbody>
    </table>
    <!--也要发表评价结束-->
  </div>
</div>
<div class="foot_outer1">
  <div class="foot02"></div>
  <div class="foot02"></div>
  <div class="foot02"></div>
  <div class="foot02"></div>
  <div class="foot03"></div>
</div>
<#------------------------------ include file  -------------------------------------------->
<#include "/WEB-INF/view/footer.ftl" />
<#------------------------------  include file  ------------------------------------------->
</body>
</html>
